package com.wyh.domain.dto.groupOne.projectaboutdto;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ApiModel(value = "billingassociationtable对象", description = "计费关联表实体")
@TableName("billingassociationtable")
public class BillingassociationtableDTO implements Serializable
{

    @NotNull(message = "[费项id]不能为空")
    @ApiModelProperty(value = "费项id",required = true)
    private Integer billingitemsid;

    @Size(max = 255, message = "计算公式不能超过255")
    @ApiModelProperty(value = "计费公式",required = true)
    private String formula;


    @ApiModelProperty("计费单价 \"price\": [19.99, 29.99, 39.99]")
    private List<BigDecimal> unitprice;

    @NotNull(message = "楼盘id不能为空")
    @ApiModelProperty(value = "楼盘id",required = true)
    private String propertyid;
}
